﻿<%@ Page Language="c#" CodeBehind="CompanyInfo.aspx.cs" AutoEventWireup="false" Inherits="CIS.CompanyInfo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <title>CompanyInfo</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <style type="text/css">
        @import url( css/ppt.css );
    </style>
    <script language="javascript" type="text/javascript">
        function window.onload() {
            attachEvents();
        }

        function attachEvents() {
            var eles = document.getElementsByTagName("A");
            for (var i = 0; i < eles.length; i++) {
                var ele = eles.item(i);
                if (ele.id.indexOf('lbDelete') != -1) {
                    ele.attachEvent('onclick', __confirmDelete);
                }
            }
        }

        function __confirmDelete() {
            if (!confirm("确定删除该CIS信息/Sure To Delete ?\r\n")) {
                return false;
            }
            return true;
        }
    </script>
</head>
<body>
    <form id="Form1" method="post" runat="server">
    <table id="table1" cellpadding="0">
        <tr>
            <td>
                <table id="table2" cellpadding="0">
                    <tr>
                        <td>
                            <!--公告栏表格开始-->
                            <table id="table2" cellpadding="0">
                                <tr>
                                    <td>
                                        <asp:Image ID="iCompany" ImageUrl="images/title_CompanyInfo.jpg" runat="server">
                                        </asp:Image>
                                    </td>
                                    <td>
                                    </td>
                                    <td>
                                        <img src="images/title_right.jpg" alt="" />
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3">
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3">
                                        <table id="table1" cellpadding="0">
                                            <tr>
                                                <td>
                                                    <img src="images/table_c1_r1.jpg" alt="" />
                                                </td>
                                                <td>
                                                </td>
                                                <td>
                                                </td>
                                                <td>
                                                    <img src="images/table_c3_r1.jpg" alt="" />
                                                </td>
                                                <td>
                                                    <img src="images/table_c4_r1.jpg" alt="" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <img src="images/table_c1_r3.jpg" alt="" />
                                                </td>
                                                <td colspan="3">
                                                    <!--此处填写内容-->
                                                    <table>
                                                        <tr>
                                                            <td colspan="7">
                                                                <asp:Button ID="newUserBtn" runat="server" Text="新建"></asp:Button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                                Area:<asp:DropDownList ID="areaDdl" runat="server" AutoPostBack="True">
                                                                </asp:DropDownList>
                                                                CAT:<asp:DropDownList ID="catDdl" runat="server">
                                                                </asp:DropDownList>
                                                                &nbsp;Region:
                                                                <asp:DropDownList ID="regionDdl" runat="server">
                                                                </asp:DropDownList>
                                                                <asp:TextBox ID="searchTbx" runat="server"></asp:TextBox><strong>&nbsp;</strong>
                                                                <asp:Button ID="searchBtn" runat="server" Text="新建"></asp:Button>
                                                                <asp:LinkButton ID="lkbDown" runat="server">Download</asp:LinkButton>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                    <asp:DataGrid ID="CompanyListDg" runat="server" PagerStyle-PageButtonCount="5" PagerStyle-PrevPageText="Prev"
                                                        PagerStyle-NextPageText="Next" PagerStyle-HorizontalAlign="Right" PagerStyle-Mode="NumericPages"
                                                        AllowPaging="True" AutoGenerateColumns="False" DataKeyField="CompanyId">
                                                        <EditItemStyle BackColor="#e8e8e8"></EditItemStyle>
                                                        <ItemStyle BackColor="#e8e8e8"></ItemStyle>
                                                        <Columns>
                                                            <asp:TemplateColumn HeaderText="Name">
                                                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                                <ItemTemplate>
                                                                    <asp:LinkButton ID="Label14" Text='<%# DataBinder.Eval(Container.DataItem,"CompanyName")%>'
                                                                        CommandArgument='<%#DataBinder.Eval(Container.DataItem,"CompanyId")%>' CommandName="GetCustomer"
                                                                        runat="server">
                                                                    </asp:LinkButton>
                                                                </ItemTemplate>
                                                            </asp:TemplateColumn>
                                                            <asp:TemplateColumn HeaderText="Add">
                                                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                                                <ItemStyle HorizontalAlign="Left"></ItemStyle>
                                                                <ItemTemplate>
                                                                    &nbsp;
                                                                    <asp:Label ID="Label13" Text='<%# DataBinder.Eval(Container.DataItem, "CompanyAdd")%>'
                                                                        runat="server" />
                                                                </ItemTemplate>
                                                            </asp:TemplateColumn>
                                                            <asp:TemplateColumn HeaderText="Tel">
                                                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                                                <ItemStyle HorizontalAlign="Left"></ItemStyle>
                                                                <ItemTemplate>
                                                                    &nbsp;
                                                                    <asp:Label ID="Label2" Text='<%# GetProvinceNameViaProvinceId(DataBinder.Eval(Container.DataItem, "RegionId"))%>'
                                                                        runat="server" />
                                                                </ItemTemplate>
                                                            </asp:TemplateColumn>
                                                            <asp:TemplateColumn HeaderText="Fax">
                                                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                                                <ItemStyle HorizontalAlign="Left"></ItemStyle>
                                                                <ItemTemplate>
                                                                    &nbsp;
                                                                    <asp:Label ID="Label3" Text='<%# DataBinder.Eval(Container.DataItem, "CompanyZip")%>'
                                                                        runat="server" />
                                                                </ItemTemplate>
                                                            </asp:TemplateColumn>
                                                            <asp:TemplateColumn HeaderText="Edit">
                                                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                                <ItemTemplate>
                                                                    <asp:ImageButton ID="Imagebutton1" runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"CompanyId")%>'
                                                                        CommandName="Edit" ImageUrl="images/icon_edit.gif" CausesValidation="False">
                                                                    </asp:ImageButton>
                                                                </ItemTemplate>
                                                            </asp:TemplateColumn>
                                                            <asp:TemplateColumn HeaderText="Delete">
                                                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                                <ItemTemplate>
                                                                    <asp:LinkButton runat="server" ID="lbDelete" CommandName="delete" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"CompanyId")%>'
                                                                        Title="Delete">
																				<img src="images/icon_delete.gif"  alt="" />
                                                                    </asp:LinkButton>
                                                                </ItemTemplate>
                                                            </asp:TemplateColumn>
                                                            <asp:TemplateColumn HeaderText="编辑人">
                                                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                                                <ItemStyle HorizontalAlign="Left"></ItemStyle>
                                                                <ItemTemplate>
                                                                    <asp:Label ID="Label4" Text='<%# GetUserName(DataBinder.Eval(Container.DataItem, "CompanyId"))%>'
                                                                        runat="server" />
                                                                </ItemTemplate>
                                                            </asp:TemplateColumn>
                                                        </Columns>
                                                    </asp:DataGrid>
                                                    <!--此处填写内容-->
                                                </td>
                                                <td>
                                                    <img src="images/table_c4_r2.jpg" alt="" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <img src="images/table_c1_r4.jpg" alt="" />
                                                </td>
                                                <td>
                                                    <img src="images/table_c2_r4.jpg" alt="" />
                                                </td>
                                                <td>
                                                </td>
                                                <td>
                                                </td>
                                                <td>
                                                    <img src="images/table_c4_r4.jpg" alt="" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                            <!--公告栏表格结束-->
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
